﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HtmlContents.ascx.cs" Inherits="VLUNewsUI.VLUNews.HtmlContents" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>

<%--Search--%>
<div class="divNewsSearch">
    <asp:TextBox ID="txtSearch" runat="server" ToolTip='<%=LocalizeString("cmdSearch")%>' />
    <asp:LinkButton ID="cmdSearch" runat="server"><img src='<%= ModulePath%>images/Search_16px.gif' alt="" /></asp:LinkButton>
</div>
<br />
<%--Command--%>
<ul class="dnnAdminTabNav dnnClear" id="adminTabNav" runat="server">
    <li><asp:LinkButton ID="cmdNew" runat="server"><%=LocalizeString("cmdNew")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdEditing" runat="server"><%=LocalizeString("cmdEditing")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdWaiting" runat="server"><%=LocalizeString("cmdWaiting")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdReturned" runat="server"><%=LocalizeString("cmdReturned")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdApproved" runat="server"><%=LocalizeString("cmdApproved")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdDowned" runat="server"><%=LocalizeString("cmdDowned")%></asp:LinkButton></li>
    <li><asp:LinkButton ID="cmdDeleted" runat="server"><%=LocalizeString("cmdDeleted")%></asp:LinkButton></li>
</ul>

<div runat="server" id="pnlSender" class="dnnForm dnnNews">
	<asp:datagrid id="dgdSender" Width="98%" AutoGenerateColumns="False" 
        runat="server" BorderStyle="None" GridLines="None" CssClass="dnnGrid">
        <headerstyle cssclass="dnnGridHeader" verticalalign="Top"/>
	    <itemstyle cssclass="dnnGridItem" horizontalalign="Left"/>
	    <alternatingitemstyle cssclass="dnnGridAltItem" />
	    <edititemstyle cssclass="dnnFormInput" />
	    <selecteditemstyle cssclass="dnnFormError" />
	    <footerstyle cssclass="dnnGridFooter" />
	    <pagerstyle cssclass="dnnGridPager" />
		<columns>
			<dnn:imagecommandcolumn commandname="Edit" IconKey="Edit" EditMode="URL" keyfield="HtmlContentID" />
		    <asp:boundcolumn DataField="HtmlContentID" HeaderText="HtmlContentID" Visible="false"/>
		    <asp:boundcolumn DataField="Title" HeaderText="Title" />
		    <asp:boundcolumn DataField="OwnerName" HeaderText="Sender" />
		</columns>
	</asp:datagrid>
</div>
<%--Phân Trang Sender--%>
<div class="pageArea">
    <asp:Panel runat="server" ID="pnlPagingSender" CssClass="pnlPaging">

<span class="spnPageSize" style="display:none">
    <asp:Label runat="server" ID="lblPageSizeSender" Text="Kích thước trang : "></asp:Label>
    <asp:TextBox runat="server" ID="txtPageSizeSender" Text="5"></asp:TextBox>
</span>

<span class="spnPageCurrent">
    <asp:Label runat="server" ID="lblPageCurrentTitleSender" Text="Trang : "></asp:Label>
    <asp:Label runat="server" ID="lblEndSender" Text="Hết" Visible="false"></asp:Label>
    <asp:Label runat="server" ID="lblPageCurrentSender" Text="0"></asp:Label>
    <span class="spnPagePercent">/</span>
    <asp:Label runat="server" ID="lblPageCountSender" Text="0"></asp:Label>
</span>

<span class="spnPageAction">
    <asp:LinkButton runat="server" ID="lbtPageBeginSender" ToolTip="Đầu" CssClass="lbtPageBegin">
        <asp:Image runat="server" ID="imgPageBeginSender" ImageUrl="images/begin.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPagePreviousSender" ToolTip="Trước" CssClass="lbtPagePrevious">
        <asp:Image runat="server" ID="imgPagePreviousSender" ImageUrl="images/frev.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPageNextSender" ToolTip="Sau" CssClass="lbtPageNext">
        <asp:Image runat="server" ID="imgPageNextSender" ImageUrl="images/ffwd.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPageEndSender" ToolTip="Cuối" CssClass="lbtPageEnd">
        <asp:Image runat="server" ID="imgPageEndSender" ImageUrl="images/end.gif" />
    </asp:LinkButton>
</span>

</asp:Panel>
</div>       

<div class="AreaOther"></div>
<div runat="server" id="pnlReceiver" class="dnnForm dnnNews">
	<asp:datagrid id="dgdReceiver" Width="98%" AutoGenerateColumns="False" 
        runat="server" BorderStyle="None" GridLines="None" CssClass="dnnGrid">
        <headerstyle cssclass="dnnGridHeader" verticalalign="Top"/>
	    <itemstyle cssclass="dnnGridItem" horizontalalign="Left"/>
	    <alternatingitemstyle cssclass="dnnGridAltItem" />
	    <edititemstyle cssclass="dnnFormInput" />
	    <selecteditemstyle cssclass="dnnFormError" />
	    <footerstyle cssclass="dnnGridFooter" />
	    <pagerstyle cssclass="dnnGridPager" />
		<columns>
			<dnn:imagecommandcolumn commandname="Edit" IconKey="Edit" EditMode="URL" keyfield="HtmlContentID" />
		    <asp:boundcolumn DataField="HtmlContentID" HeaderText="HtmlContentID" Visible="false"/>
		    <asp:boundcolumn DataField="Title" HeaderText="Title" />
		    <asp:boundcolumn DataField="OwnerName" HeaderText="Receiver" />
		</columns>
	</asp:datagrid>
</div>
<%--Phân Trang Receiver--%>
<div class="pageArea">
    <asp:Panel runat="server" ID="pnlPagingReceiver" CssClass="pnlPaging">

<span class="spnPageSize" style="display:none">
    <asp:Label runat="server" ID="lblPageSizeReceiver" Text="Kích thước trang : "></asp:Label>
    <asp:TextBox runat="server" ID="txtPageSizeReceiver" Text="5"></asp:TextBox>
</span>

<span class="spnPageCurrent">
    <asp:Label runat="server" ID="lblPageCurrentTitleReceiver" Text="Trang : "></asp:Label>
    <asp:Label runat="server" ID="lblEndReceiver" Text="Hết" Visible="false"></asp:Label>
    <asp:Label runat="server" ID="lblPageCurrentReceiver" Text="0"></asp:Label>
    <span class="spnPagePercent">/</span>
    <asp:Label runat="server" ID="lblPageCountReceiver" Text="0"></asp:Label>
</span>

<span class="spnPageAction">
    <asp:LinkButton runat="server" ID="lbtPageBeginReceiver" ToolTip="Đầu" CssClass="lbtPageBegin">
        <asp:Image runat="server" ID="imgPageBeginReceiver" ImageUrl="images/begin.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPagePreviousReceiver" ToolTip="Trước" CssClass="lbtPagePrevious">
        <asp:Image runat="server" ID="imgPagePreviousReceiver" ImageUrl="images/frev.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPageNextReceiver" ToolTip="Sau" CssClass="lbtPageNext">
        <asp:Image runat="server" ID="imgPageNextReceiver" ImageUrl="images/ffwd.gif" />
    </asp:LinkButton>
    
    <%--<span class="spnPageSign">|</span>--%>
    <asp:LinkButton runat="server" ID="lbtPageEndReceiver" ToolTip="Cuối" CssClass="lbtPageEnd">
        <asp:Image runat="server" ID="imgPageEndReceiver" ImageUrl="images/end.gif" />
    </asp:LinkButton>
</span>

</asp:Panel>
</div>       

<%--Members--%>
<asp:Panel runat="server" ID="pnlMembers" CssClass="pnlItemListMembers">
<div style="display:none">
    <input type="hidden" id="lblSkipSender" runat="server" value="0" />
    <input type="hidden" id="lblCountSender" runat="server" value="0" />
    <input type="hidden" id="lblSkipReceiver" runat="server" value="0" />
    <input type="hidden" id="lblCountReceiver" runat="server" value="0" />
</div>
</asp:Panel>


<asp:Label ID="lblManagerVisible" runat="server" CssClass="lblManagerVisible" />

<script language="javascript" type="text/javascript">
    /*globals jQuery, window, Sys */
    (function ($, Sys) {
        $(document).ready(function () {
            if ($('#<%= lblManagerVisible.ClientID %>').text() == "") {
                $('.dnnActionMenu').hide();
            }
        });
    } (jQuery, window.Sys));
</script>